function WFusion=FusionW1DFit(EstimatedW,Treshold,WIndex)
WFusion=...
     (EstimatedW(:,2)> Treshold).*EstimatedW(:,WIndex(2))...
    +(EstimatedW(:,2)<=Treshold).*EstimatedW(:,WIndex(1));
